<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="../js/jquery-1.8.2.min.js" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function subform() {
	document.form1.submit();
}
</script>
<title>列表查询</title>
</head>
<body>
	<form action="/goods/list.do" method="post" name="form1"
		target="mainFrame" id="form1">
		&nbsp;&nbsp; 
		地址<input id="search_url" name="search_url" type="text" value="" size="20" /> <br />
		 &nbsp;&nbsp; 
		版块数据：<select id="range" name="range">
			<option value="1">首页</option>
			<option value="2">享优惠</option>
			<option value="3">发现</option>
		</select>
		 &nbsp;&nbsp; 
		 <br />
		新分类
		<select id="maincat" name="maincat" onchange="changeCat(this.value)">
			<option value="D01">婴童</option>
			<option value="D02">女装</option>
			<option value="D03">鞋靴</option>
			<option value="D04">创意商品</option>
			<option value="D05">配饰</option>
			<option value="D06">女包</option>
			<option value="D07">手机数码</option>
			<option value="D08">美容化妆</option>
			<option value="D09">家用电器</option>
			<option value="D10">家居生活</option>
		</select>
		二级分类：
		<select id="secondcat" name="secondcat">
			<option value='001'>上衣</option>
		</select>
		 &nbsp;&nbsp; 
		 旧分类(有的话选择)：
		<select id="classiccode" name="classiccode">
			<option value="10">手机数码</option>
		</select>
		 &nbsp;&nbsp; 
		 <br />
		<input type="button" onclick="subform()" value="提交" /> <input
			type="reset" name="Reset" value="重置" /> <br />
		<iframe src="about:blank" width="100%" height="700" name="mainFrame"
			id="mainFrame" title="mainFrame"></iframe>
	</form>
	
	</body>
<script type="text/javascript">
function subform() {
	document.form1.submit();
}
	function changeCat(value){
		if("D01"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='19'>母婴</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>童装</option>");
			secondcat.append("<option value='002'>童鞋</option>");
			secondcat.append("<option value='003'>婴儿</option>");
		}else if("D02"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='15'>服饰鞋帽</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>上衣</option>");
			secondcat.append("<option value='002'>外套</option>");
			secondcat.append("<option value='003'>下装</option>");
		}else if("D03"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='15'>服饰鞋帽</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>女鞋</option>");
			secondcat.append("<option value='002'>男鞋</option>");
			secondcat.append("<option value='003'>靴子</option>");
		}else if("D04"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='16'>饰物箱包</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>创意饰品</option>");
			secondcat.append("<option value='002'>创意家居</option>");
			secondcat.append("<option value='003'>创意礼品</option>");
		}else if("D05"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='15'>服饰鞋帽</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>围巾</option>");
			secondcat.append("<option value='002'>帽子</option>");
			secondcat.append("<option value='003'>内衣</option>");
		}else if("D06"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='16'>饰物箱包</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>钱包手包</option>");
			secondcat.append("<option value='002'>斜挎手提</option>");
			secondcat.append("<option value='003'>双肩包</option>");
		}else if("D07"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='10'>手机数码</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>手机</option>");
			secondcat.append("<option value='002'>摄像/相机</option>");
			secondcat.append("<option value='003'>其他</option>");
		}else if("D08"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='12'>美容化妆</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>面部护理</option>");
			secondcat.append("<option value='002'>香水</option>");
			secondcat.append("<option value='003'>魅力彩妆</option>");
		}else if("D09"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='11'>家用电器</option>");
		
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>大家电</option>");
			secondcat.append("<option value='002'>生活电器</option>");
			secondcat.append("<option value='003'>厨卫电器</option>");
		}else if("D10"==value){
			var classiccodeopt = $("#classiccode option");
			classiccodeopt.remove();
			var classiccode = $("#classiccode");
			classiccode.append("<option value='17'>厨卫家居</option>");
			
			var secondcatopt = $("#secondcat option");
			secondcatopt.remove();
			var secondcat = $("#secondcat");
			secondcat.append("<option value='001'>床上用品</option>");
			secondcat.append("<option value='002'>水杯</option>");
			secondcat.append("<option value='003'>厨具</option>");
		}
	}
</script>

</html>


